package com.party.web.web.dto.output.merchantAnalyze;

import com.party.core.model.member.MemberMerchantCount;
import com.party.core.model.member.MemberMerchantDetail;
import org.springframework.beans.BeanUtils;

/**
 * 机构统计输出视图
 * Created by wei.li.
 *
 * @date 2017/12/14 0014
 * @time 15:16
 */
public class MerchantAnalyzeOutput {

    //机构报名数
    private Integer applyNum;

    //机构订单数
    private Integer orderNum;

    //机构资金
    private Double money;

    //机构浏览量
    private Long viewNum;

    //机构会员数
    private Integer memberNum;

    //机构实名会员
    private Integer realMemberNum;

    public Integer getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(Integer applyNum) {
        this.applyNum = applyNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Long getViewNum() {
        return viewNum;
    }

    public void setViewNum(Long viewNum) {
        this.viewNum = viewNum;
    }

    public Integer getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(Integer memberNum) {
        this.memberNum = memberNum;
    }

    public Integer getRealMemberNum() {
        return realMemberNum;
    }

    public void setRealMemberNum(Integer realMemberNum) {
        this.realMemberNum = realMemberNum;
    }

    public static MerchantAnalyzeOutput transform(MemberMerchantDetail memberMerchantDetail){
        MerchantAnalyzeOutput merchantAnalyzeOutput = new MerchantAnalyzeOutput();
        BeanUtils.copyProperties(memberMerchantDetail, merchantAnalyzeOutput);
        return merchantAnalyzeOutput;
    }


    public static MerchantAnalyzeOutput transform(MemberMerchantCount memberMerchantCount){
        MerchantAnalyzeOutput merchantAnalyzeOutput = new MerchantAnalyzeOutput();
        BeanUtils.copyProperties(memberMerchantCount, merchantAnalyzeOutput);
        return merchantAnalyzeOutput;
    }
}
